<html>
<head><meta charset="utf-8"><title>rust-analyzer missing match arm error · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rust-analyzer.20missing.20match.20arm.20error.html">rust-analyzer missing match arm error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="210325660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rust-analyzer%20missing%20match%20arm%20error/near/210325660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rust-analyzer.20missing.20match.20arm.20error.html#210325660">(Sep 16 2020 at 22:01)</a>:</h4>
<p>I noticed that in rustc_resolve/src/late.rs, rust-analyzer thinks there are 2 incomplete match statements, but they compile fine. Does rust-analyzer use a different algorithm than the one in "compiler/rustc_mir_build/src/thir/pattern/_match.rs"? should I report this on the rust analyzer repo?</p>



<a name="210325879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rust-analyzer%20missing%20match%20arm%20error/near/210325879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rust-analyzer.20missing.20match.20arm.20error.html#210325879">(Sep 16 2020 at 22:03)</a>:</h4>
<p>Oh wait this is probably because #![feature(or_patterns)] is on. how can I make rust-analyzer respect features?</p>



<a name="210326139"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rust-analyzer%20missing%20match%20arm%20error/near/210326139" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rust-analyzer.20missing.20match.20arm.20error.html#210326139">(Sep 16 2020 at 22:05)</a>:</h4>
<p>Yes, the or-patterns implementation in rust-analyzer is incomplete</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>